package com.ruoyi.order.service;

import java.io.IOException;
import java.net.URISyntaxException;
import java.util.List;

import com.ruoyi.order.domain.*;
import org.apache.poi.ss.usermodel.Workbook;

import javax.servlet.http.HttpServletResponse;

/**
 * 订单Service接口
 * 
 * @author ruoyi
 * @date 2025-08-19
 */
public interface ITbProductOrderService 
{
    /**
     * 查询订单
     * 
     * @param id 订单主键
     * @return 订单
     */
    public TbProductOrder selectTbProductOrderById(Long id);

    /**
     * 查询订单列表
     * 
     * @param tbProductOrder 订单
     * @return 订单集合
     */
    public List<TbProductOrder> selectTbProductOrderList(TbProductOrder tbProductOrder);

    /**
     * 新增订单
     * 
     * @param tbProductOrder 订单
     * @return 结果
     */
    public int insertTbProductOrder(TbProductOrder tbProductOrder);

    /**
     * 修改订单
     * 
     * @param tbProductOrder 订单
     * @return 结果
     */
    public int updateTbProductOrder(TbProductOrder tbProductOrder);

    /**
     * 批量删除订单
     * 
     * @param ids 需要删除的订单主键集合
     * @return 结果
     */
    public int deleteTbProductOrderByIds(Long[] ids);

    /**
     * 删除订单信息
     * 
     * @param id 订单主键
     * @return 结果
     */
    public int deleteTbProductOrderById(Long id);

    int createOrder(OrderInfo orderInfo);


    void editOrder(OrderInfo orderInfo);


    public String buildWorkContent(TbProductOrder tbProductOrder,String templateId);



    public List<ExportOrderVo> selectExportVo(TbProductOrder tbProductOrder);
}
